package im.starchat.chat.rest.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by liuchao on 3/12/16.
 */
public class AccountBean implements Parcelable {

    private int id;
    private int user_id;
    private int amount;
    private int total_popularity;
    private int popularity;
    private float withdraw_money;
    private float max_withdraw_money;
    private String recipient;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public int getTotal_popularity() {
        return total_popularity;
    }

    public void setTotal_popularity(int total_popularity) {
        this.total_popularity = total_popularity;
    }

    public int getPopularity() {
        return popularity;
    }

    public void setPopularity(int popularity) {
        this.popularity = popularity;
    }

    public float getWithdraw_money() {
        return withdraw_money;
    }

    public void setWithdraw_money(float withdraw_money) {
        this.withdraw_money = withdraw_money;
    }

    public float getMax_withdraw_money() {
        return max_withdraw_money;
    }

    public void setMax_withdraw_money(float max_withdraw_money) {
        this.max_withdraw_money = max_withdraw_money;
    }

    public String getRecipient() {
        return recipient;
    }

    public void setRecipient(String recipient) {
        this.recipient = recipient;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeInt(this.user_id);
        dest.writeInt(this.amount);
        dest.writeInt(this.total_popularity);
        dest.writeInt(this.popularity);
        dest.writeFloat(this.withdraw_money);
        dest.writeFloat(this.max_withdraw_money);
        dest.writeString(this.recipient);
    }

    public AccountBean() {
    }

    protected AccountBean(Parcel in) {
        this.id = in.readInt();
        this.user_id = in.readInt();
        this.amount = in.readInt();
        this.total_popularity = in.readInt();
        this.popularity = in.readInt();
        this.withdraw_money = in.readFloat();
        this.max_withdraw_money = in.readFloat();
        this.recipient = in.readString();
    }

    public static final Parcelable.Creator<AccountBean> CREATOR = new Parcelable.Creator<AccountBean>() {
        public AccountBean createFromParcel(Parcel source) {
            return new AccountBean(source);
        }

        public AccountBean[] newArray(int size) {
            return new AccountBean[size];
        }
    };
}
